package com.njmt.cloud.msprovder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njwt.cloud.mscommon.pojo.bo.PermissionBo;
import com.njwt.cloud.mscommon.pojo.vo.PermissionVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author <a href="mailto:xingxiaofeng@gtmap.cn">xingxiaofeng</a>
 * @date 2022-06-22
 * @desc PermissionMapper
 */
@Repository
public interface PermissionMapper extends BaseMapper<PermissionBo> {


    /**
     * 根据用户id查询用户的权限
     *
     * @param userId 用户id
     * @return List<PermissionVo>
     */
    List<PermissionVo> findAuthorityByUserId(@Param(value = "userId") String userId);

}
